<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>登录</title>

    <!-- Bootstrap core CSS -->
<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <style>
      .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }

      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }
    </style>


    <!-- Custom styles for this template -->
    <link th:href="@{/css/signin.css}" rel="stylesheet">
  </head>
  <body class="text-center">

<main class="form-signin">
  <form action="/user/login">
    <img class="mb-4" th:src="@{/img/bootstrap-logo.svg}" alt="" width="72" height="57">
    <h1 class="h3 mb-3 fw-normal" th:text="#{login.tip}">Please sign in</h1>
    <span style="color: red" th:text="${msg}"></span>
    <div class="form-floating">
      <input type="email" name="username" class="form-control" id="floatingInput" th:placeholder="#{login.username}">
      <label for="floatingInput" th:text="#{login.username}">Email address</label>
    </div>
    <div class="form-floating">
      <input type="password" name="password" class="form-control" id="floatingPassword" th:placeholder="#{login.password}">
      <label for="floatingPassword" th:text="#{login.password}" >Password</label>
    </div>

    <div class="checkbox mb-3">
      <label>
        <input type="checkbox" value="remember-me" th:text="#{login.remember}">
      </label>
    </div>
    <button class="w-100 btn btn-lg btn-primary" type="submit" th:text="#{login.btn}">Sign in</button>
    <p class="mt-5 mb-3 text-muted">&copy; 2017–2021</p>
    <a class="btn btn-sm" th:href="@{/index.html(l='zh_CN')}">中文</a>
    <a class="btn btn-sm" th:href="@{/index.html(l='en_US')}">english</a>
  </form>
</main>



  </body>
</html>
